package com.xxq.semester.service.exam;

import com.xxq.semester.entity.exam.Exams;
import com.baomidou.mybatisplus.extension.service.IService;

import java.time.LocalDateTime;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author saki
 * @since 2025-07-13
 */
public interface IExamsService extends IService<Exams> {
    /**
     * 创建考试记录
     */
    Integer createExam(Integer teacherId, String title, String description, LocalDateTime startTime, LocalDateTime endTime, Long duration, Integer classId);

    /**
     * 发布考试（修改状态为已发布）
     */
    void publishExam(Integer examId, Integer classId);
}
